package com.ztc.mapper;

import com.ztc.beans.Book;
import com.ztc.beans.Jbook;
import com.ztc.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface BookMapper {
    void delBook(int id1);

    Book getBookById(int id);

    void upBook(@Param("id") int i,@Param("book") Book book);

    void addBoook(Book book);

    Book getBookName(String name);

    Book getBookById1(int id);

    void upbookBsum1(int i);

    void addjbook(int id, String bid);

    boolean getjbook(int id, String bid);

    List<Jbook> getjbooks(int id);

    void upbookBsum2(String bid);

    void upjbook(String id);

    boolean getjbook(String bid);

    int getBookSum(@Param("bname") String bname,@Param("author") String author);

    List<Book> getbooks(HashMap map);
}
